package cn.zzdt4j.config.config;

import cn.zzdt4j.core.config.ApplicationContextHolder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * The type Common config.
 *
 * @author by <a href="mailto:ligang941012@gmail.com">gang.Li</a>
 * @since 2023 /11/12 22:54
 */
@Configuration
public class CommonConfig {

    @Bean
    @ConditionalOnMissingBean
    public ApplicationContextHolder zzdt4jApplicationContextHolder() {
        return new ApplicationContextHolder();
    }
}
